package com.zbf.t123;

import com.alibaba.fastjson.JSON;

/**
 * author: LCG
 * Date: 2022-04-14 13:04:38
 * description:
 **/
public class TestMaoPao {
    public static void main(String[] args) {
        int [] ii={1,6,4,9,5,12};

        for (int i = 0; i < ii.length; i++) {

            for (int j = 0; j < ii.length; j++) {

               if(ii[j]<= ii[i]){
                   int yy=ii[i];
                   ii[i]=ii[j];
                   ii[j]=yy;
               }

            }

        }


        System.out.println(JSON.toJSONString(ii));

    }
}
